<LINK REL="stylesheet" HREF="../../templates/css/style.css" TYPE="text/css">
<style type="text/css">
 li {
   float: left;
   list-style-type: none;
   width: 220px;
   display: inline; 
   line-height:18pt;
   padding-left: 2px;
 }
</style>
<table width="98%" border="0" class="table2">
  <tr>
    <td>管理中心 - 系統設置 - 數據備份/恢復</td>
  </tr>
</table>
<form name="frm_database" method="post" action="backup.php">
  <table width="98%" border="0" align="center"  class="table1">
    <caption>
    次功能具有很大的威脅性，請慎重使用！操作失誤將導致網站不能正常運行！
    </caption>
    <tr>
      <th>備份數據</th>
    </tr>
    <tr>
      <td><input name="type" type="radio" onclick="gObj.display='none'" value="full" checked="checked" class="so" />
        全部備份</td>
    </tr>
    <tr>
      <td><input type="radio" name="type" value="custom" onclick="gObj.display=''" class="so" />
        自定義備份 </td>
    </tr>
    <tr id="table_list" style="display:none">
      <td height="27"><input name="chk_all" type="checkbox" id="chk_all" value="1" onclick="Check_Box(this, 'tbl_list');" class="so" />
        <strong> 全選 </strong><br />
        <br />
        <div id="tbl_list" >
          <!-- BEGIN TBL_LIST -->
          <li>
            <input name="tbl_name[]" type="checkbox" value="{tbl_name}" class="so" />
            {tbl_name}</li>
          <!-- END TBL_LIST -->
        </div></td>
    </tr>
    <tr>
      <td><br />
        <fieldset>
        <legend>
        <input type="checkbox" name="savefile" value="sendit" id="savefile" class="so" />
        <label for="savefile">另存為</label>
        </legend>
        文件名：
        <input type="text" name="filename" />
        (可選：默認為系統日期,如20061007)<br />
        壓縮：
        <input name="zip" type="radio" value="no" checked="checked" class="so"/>
        無
        <input name="zip" type="radio" value="yes" class="so" />
        壓縮(.zip)
        </fieldset></td>
    </tr>
    <tr>
      <td align="center"><input type="hidden" name="action" value="backup" />
        <input type="submit" name="Submit" value="開始備份..." class="bot" />
      </td>
    </tr>
  </table>
</form>
<script language="javascript" type="text/javascript">
<!--

  gObj = document.getElementById('table_list').style;
  
  //全選
  function Check_Box(self, css_ele)
  {
     items = document.getElementById(css_ele).getElementsByTagName('input');
	 len = items.length;
     for(i=0;i< len;i++)
	 {
	   items[i].checked = self.checked;
	 }
  }
//-->
</script>
<form id="form1" name="form1" method="post" action="restore.php" enctype="multipart/form-data">
  <table width="98%" border="0" align="center" class="table1">
    <tr>
      <th>恢復數據</th>
    </tr>
    <tr>
      <td>sql 文件：
        <input name="filename" type="file" size="35" ></td>
    </tr>
    <tr>
      <td align="center"><input type="hidden" name="action" value="restore" />
        <input type="submit" name="submit" value="開始恢復..." class="bot" />
      </td>
    </tr>
  </table>
  <table width="98%" border="0" class="table1" align="center">
    <tr>
      <th width="685">優化數據表</th>
    </tr>
    <tr>
      <td>單擊“開始優化...”按鈕進入優化介面，顯示每個表單相關信息。</td>
    </tr>
    <tr>
      <td align="center"><input name="entry" type="button" id="entry" value="開始優化..." onclick="location.href='optimize.php'" class="bot" />
      </td>
    </tr>
  </table>
</form>
